// 笔记相关api地址
const api_article = {
    categoryGroup: "/article/categoryGroup", // 笔记分类以及分类下的数量
    notesTable: "/article/notesTable", // 笔记表格数据 多的一个/为了后面拼接参数
    category: "/article/category", // 个人分类
    defaultLabels: "/article/defaultLabels", // 默认的标签
    note: "/article/note", // 新建笔记、修改笔记、删除笔记
    newNoteId: "/article/newNoteId", // 请求新的笔记Id
    lockNote: "/article/notesTable/lock", // 锁定笔记
    unLockNote: "/article/notesTable/unlock", // 解锁笔记
    upload: "/article/upload", // 上传md笔记
    deleteImage: "/article/deleteTempImg", // 手动删除图片触发 
    downloadInView: "/article/download/", // 在预览界面下载/article/download/{id}
    downloadCategory: "/article/package/", // 下载整个分类的笔记/article/package/{categoryId}
    
}

// 认证相关api地址
const api_auth = {
    login: "/auth/loginProcess", // 登录
    refresh: "/auth/refresh", // 刷新token
    user: "/auth/user", // 获取信息
    users: "/auth/users", // 获取用户一览数据
    unconfirmedUsers: "/auth/unconfirmedUsers", // 获取待审核的所有用户数据
    accept: "/auth/accept", // 接受用户注册
    deny: "/auth/deny", // 拒绝用户注册
    invitationCode: "/auth/invitationCode", // 生成邀请码
    lockUser: "/auth/lock", // 锁定用户
    unlockUser: "/auth/unlock", // 解锁用户
    register: "/auth/register", // 用户注册
    mailCode: "/auth/mailCode", // 发送邮箱验证码
    password: "/auth/password", // 修改密码
}

// 工具组件相关api地址
const api_component = {
    locations: "/component/locations", // 获取和风天气所需的位置信息一览
    qweatherKey: "/component/qweatherKey", // 和风天气API认证key
}

/**
 * 静态文件相关api地址
 */
const api_file = {
    image: "/images/image", // 图片上传路径、图片回显路径前缀
    
}

const apis = { 
    api_article: api_article, 
    api_auth: api_auth,
    api_file: api_file,
    api_component: api_component,
    api_host: process.env.VUE_APP_BASE_URL, // http://localhost:9000  http://182.61.16.199:8080
    file_host: "http://localhost:9002"
}


export default apis;